package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SaleLoanContractConfiscate generated by hbm2java
 */
@Entity
@Table(name="sale_loan_contract_confiscate"
    ,catalog="lmis"
)
public class SaleLoanContractConfiscate  implements java.io.Serializable {


     private SaleLoanContractConfiscateId id;
     private SaleLoanContract saleLoanContract;
     private Date confiscateDate;
     private Short confiscateByEmpNo;
     private String confiscateMemo;
     private String saleConfiscateMemo;
     private BigDecimal netSalePrice;
     private BigDecimal salePrice;
     private BigDecimal vatPerc;
     private BigDecimal vatVal;
     private Short statusIsIncVat;
     private BigDecimal saleProfit;
     private Short saleConfiscateByEmpNo;
     private Date saleConfiscateDate;
     private Short payPartNo;
     private Short contractPayPartNo;
     private String receiptCode;
     private Short receiptByEmpNo;
     private Short receiptManualStatus;
     private Long confiscateJnSpRecNo;
     private Long saleJnSpRecNo;
     private BigDecimal principalRemainVal;
     private BigDecimal payVal;
     private Short buyerNameTitleNo;
     private String buyerFirstName;
     private String buyerLastName;
     private String buyerIdCardNo;
     private String buyerAddrNo;
     private Short buyerAddrMoo;
     private String buyerAddrBuilding;
     private String buyerAddrSoi;
     private String buyerAddrRoad;
     private String buyerAddrVillage;
     private Integer buyerAddr2No;
     private Integer buyerAddr3No;
     private Short buyerAddr4No;
     private String buyerAddr5;
     private String buyerPhoneNo;
     private String buyerMobileNo;

    public SaleLoanContractConfiscate() {
    }

	
    public SaleLoanContractConfiscate(SaleLoanContractConfiscateId id, SaleLoanContract saleLoanContract) {
        this.id = id;
        this.saleLoanContract = saleLoanContract;
    }
    public SaleLoanContractConfiscate(SaleLoanContractConfiscateId id, SaleLoanContract saleLoanContract, Date confiscateDate, Short confiscateByEmpNo, String confiscateMemo, String saleConfiscateMemo, BigDecimal netSalePrice, BigDecimal salePrice, BigDecimal vatPerc, BigDecimal vatVal, Short statusIsIncVat, BigDecimal saleProfit, Short saleConfiscateByEmpNo, Date saleConfiscateDate, Short payPartNo, Short contractPayPartNo, String receiptCode, Short receiptByEmpNo, Short receiptManualStatus, Long confiscateJnSpRecNo, Long saleJnSpRecNo, BigDecimal principalRemainVal, BigDecimal payVal, Short buyerNameTitleNo, String buyerFirstName, String buyerLastName, String buyerIdCardNo, String buyerAddrNo, Short buyerAddrMoo, String buyerAddrBuilding, String buyerAddrSoi, String buyerAddrRoad, String buyerAddrVillage, Integer buyerAddr2No, Integer buyerAddr3No, Short buyerAddr4No, String buyerAddr5, String buyerPhoneNo, String buyerMobileNo) {
       this.id = id;
       this.saleLoanContract = saleLoanContract;
       this.confiscateDate = confiscateDate;
       this.confiscateByEmpNo = confiscateByEmpNo;
       this.confiscateMemo = confiscateMemo;
       this.saleConfiscateMemo = saleConfiscateMemo;
       this.netSalePrice = netSalePrice;
       this.salePrice = salePrice;
       this.vatPerc = vatPerc;
       this.vatVal = vatVal;
       this.statusIsIncVat = statusIsIncVat;
       this.saleProfit = saleProfit;
       this.saleConfiscateByEmpNo = saleConfiscateByEmpNo;
       this.saleConfiscateDate = saleConfiscateDate;
       this.payPartNo = payPartNo;
       this.contractPayPartNo = contractPayPartNo;
       this.receiptCode = receiptCode;
       this.receiptByEmpNo = receiptByEmpNo;
       this.receiptManualStatus = receiptManualStatus;
       this.confiscateJnSpRecNo = confiscateJnSpRecNo;
       this.saleJnSpRecNo = saleJnSpRecNo;
       this.principalRemainVal = principalRemainVal;
       this.payVal = payVal;
       this.buyerNameTitleNo = buyerNameTitleNo;
       this.buyerFirstName = buyerFirstName;
       this.buyerLastName = buyerLastName;
       this.buyerIdCardNo = buyerIdCardNo;
       this.buyerAddrNo = buyerAddrNo;
       this.buyerAddrMoo = buyerAddrMoo;
       this.buyerAddrBuilding = buyerAddrBuilding;
       this.buyerAddrSoi = buyerAddrSoi;
       this.buyerAddrRoad = buyerAddrRoad;
       this.buyerAddrVillage = buyerAddrVillage;
       this.buyerAddr2No = buyerAddr2No;
       this.buyerAddr3No = buyerAddr3No;
       this.buyerAddr4No = buyerAddr4No;
       this.buyerAddr5 = buyerAddr5;
       this.buyerPhoneNo = buyerPhoneNo;
       this.buyerMobileNo = buyerMobileNo;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="contractRecNo", column=@Column(name="CONTRACT_REC_NO", nullable=false) ), 
        @AttributeOverride(name="confiscateSeqNo", column=@Column(name="CONFISCATE_SEQ_NO", nullable=false) ) } )
    public SaleLoanContractConfiscateId getId() {
        return this.id;
    }
    
    public void setId(SaleLoanContractConfiscateId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="CONTRACT_REC_NO", nullable=false, insertable=false, updatable=false)
    public SaleLoanContract getSaleLoanContract() {
        return this.saleLoanContract;
    }
    
    public void setSaleLoanContract(SaleLoanContract saleLoanContract) {
        this.saleLoanContract = saleLoanContract;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="CONFISCATE_DATE", length=19)
    public Date getConfiscateDate() {
        return this.confiscateDate;
    }
    
    public void setConfiscateDate(Date confiscateDate) {
        this.confiscateDate = confiscateDate;
    }

    
    @Column(name="CONFISCATE_BY_EMP_NO")
    public Short getConfiscateByEmpNo() {
        return this.confiscateByEmpNo;
    }
    
    public void setConfiscateByEmpNo(Short confiscateByEmpNo) {
        this.confiscateByEmpNo = confiscateByEmpNo;
    }

    
    @Column(name="CONFISCATE_MEMO", length=300)
    public String getConfiscateMemo() {
        return this.confiscateMemo;
    }
    
    public void setConfiscateMemo(String confiscateMemo) {
        this.confiscateMemo = confiscateMemo;
    }

    
    @Column(name="SALE_CONFISCATE_MEMO", length=300)
    public String getSaleConfiscateMemo() {
        return this.saleConfiscateMemo;
    }
    
    public void setSaleConfiscateMemo(String saleConfiscateMemo) {
        this.saleConfiscateMemo = saleConfiscateMemo;
    }

    
    @Column(name="NET_SALE_PRICE", precision=15)
    public BigDecimal getNetSalePrice() {
        return this.netSalePrice;
    }
    
    public void setNetSalePrice(BigDecimal netSalePrice) {
        this.netSalePrice = netSalePrice;
    }

    
    @Column(name="SALE_PRICE", precision=15)
    public BigDecimal getSalePrice() {
        return this.salePrice;
    }
    
    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    
    @Column(name="VAT_PERC", precision=10)
    public BigDecimal getVatPerc() {
        return this.vatPerc;
    }
    
    public void setVatPerc(BigDecimal vatPerc) {
        this.vatPerc = vatPerc;
    }

    
    @Column(name="VAT_VAL", precision=10)
    public BigDecimal getVatVal() {
        return this.vatVal;
    }
    
    public void setVatVal(BigDecimal vatVal) {
        this.vatVal = vatVal;
    }

    
    @Column(name="STATUS_IS_INC_VAT")
    public Short getStatusIsIncVat() {
        return this.statusIsIncVat;
    }
    
    public void setStatusIsIncVat(Short statusIsIncVat) {
        this.statusIsIncVat = statusIsIncVat;
    }

    
    @Column(name="SALE_PROFIT", precision=15)
    public BigDecimal getSaleProfit() {
        return this.saleProfit;
    }
    
    public void setSaleProfit(BigDecimal saleProfit) {
        this.saleProfit = saleProfit;
    }

    
    @Column(name="SALE_CONFISCATE_BY_EMP_NO")
    public Short getSaleConfiscateByEmpNo() {
        return this.saleConfiscateByEmpNo;
    }
    
    public void setSaleConfiscateByEmpNo(Short saleConfiscateByEmpNo) {
        this.saleConfiscateByEmpNo = saleConfiscateByEmpNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="SALE_CONFISCATE_DATE", length=19)
    public Date getSaleConfiscateDate() {
        return this.saleConfiscateDate;
    }
    
    public void setSaleConfiscateDate(Date saleConfiscateDate) {
        this.saleConfiscateDate = saleConfiscateDate;
    }

    
    @Column(name="PAY_PART_NO")
    public Short getPayPartNo() {
        return this.payPartNo;
    }
    
    public void setPayPartNo(Short payPartNo) {
        this.payPartNo = payPartNo;
    }

    
    @Column(name="CONTRACT_PAY_PART_NO")
    public Short getContractPayPartNo() {
        return this.contractPayPartNo;
    }
    
    public void setContractPayPartNo(Short contractPayPartNo) {
        this.contractPayPartNo = contractPayPartNo;
    }

    
    @Column(name="RECEIPT_CODE", length=50)
    public String getReceiptCode() {
        return this.receiptCode;
    }
    
    public void setReceiptCode(String receiptCode) {
        this.receiptCode = receiptCode;
    }

    
    @Column(name="RECEIPT_BY_EMP_NO")
    public Short getReceiptByEmpNo() {
        return this.receiptByEmpNo;
    }
    
    public void setReceiptByEmpNo(Short receiptByEmpNo) {
        this.receiptByEmpNo = receiptByEmpNo;
    }

    
    @Column(name="RECEIPT_MANUAL_STATUS")
    public Short getReceiptManualStatus() {
        return this.receiptManualStatus;
    }
    
    public void setReceiptManualStatus(Short receiptManualStatus) {
        this.receiptManualStatus = receiptManualStatus;
    }

    
    @Column(name="CONFISCATE_JN_SP_REC_NO")
    public Long getConfiscateJnSpRecNo() {
        return this.confiscateJnSpRecNo;
    }
    
    public void setConfiscateJnSpRecNo(Long confiscateJnSpRecNo) {
        this.confiscateJnSpRecNo = confiscateJnSpRecNo;
    }

    
    @Column(name="SALE_JN_SP_REC_NO")
    public Long getSaleJnSpRecNo() {
        return this.saleJnSpRecNo;
    }
    
    public void setSaleJnSpRecNo(Long saleJnSpRecNo) {
        this.saleJnSpRecNo = saleJnSpRecNo;
    }

    
    @Column(name="PRINCIPAL_REMAIN_VAL", precision=15)
    public BigDecimal getPrincipalRemainVal() {
        return this.principalRemainVal;
    }
    
    public void setPrincipalRemainVal(BigDecimal principalRemainVal) {
        this.principalRemainVal = principalRemainVal;
    }

    
    @Column(name="PAY_VAL", precision=15)
    public BigDecimal getPayVal() {
        return this.payVal;
    }
    
    public void setPayVal(BigDecimal payVal) {
        this.payVal = payVal;
    }

    
    @Column(name="BUYER_NAME_TITLE_NO")
    public Short getBuyerNameTitleNo() {
        return this.buyerNameTitleNo;
    }
    
    public void setBuyerNameTitleNo(Short buyerNameTitleNo) {
        this.buyerNameTitleNo = buyerNameTitleNo;
    }

    
    @Column(name="BUYER_FIRST_NAME", length=50)
    public String getBuyerFirstName() {
        return this.buyerFirstName;
    }
    
    public void setBuyerFirstName(String buyerFirstName) {
        this.buyerFirstName = buyerFirstName;
    }

    
    @Column(name="BUYER_LAST_NAME", length=50)
    public String getBuyerLastName() {
        return this.buyerLastName;
    }
    
    public void setBuyerLastName(String buyerLastName) {
        this.buyerLastName = buyerLastName;
    }

    
    @Column(name="BUYER_ID_CARD_NO", length=20)
    public String getBuyerIdCardNo() {
        return this.buyerIdCardNo;
    }
    
    public void setBuyerIdCardNo(String buyerIdCardNo) {
        this.buyerIdCardNo = buyerIdCardNo;
    }

    
    @Column(name="BUYER_ADDR_NO", length=50)
    public String getBuyerAddrNo() {
        return this.buyerAddrNo;
    }
    
    public void setBuyerAddrNo(String buyerAddrNo) {
        this.buyerAddrNo = buyerAddrNo;
    }

    
    @Column(name="BUYER_ADDR_MOO")
    public Short getBuyerAddrMoo() {
        return this.buyerAddrMoo;
    }
    
    public void setBuyerAddrMoo(Short buyerAddrMoo) {
        this.buyerAddrMoo = buyerAddrMoo;
    }

    
    @Column(name="BUYER_ADDR_BUILDING", length=100)
    public String getBuyerAddrBuilding() {
        return this.buyerAddrBuilding;
    }
    
    public void setBuyerAddrBuilding(String buyerAddrBuilding) {
        this.buyerAddrBuilding = buyerAddrBuilding;
    }

    
    @Column(name="BUYER_ADDR_SOI", length=50)
    public String getBuyerAddrSoi() {
        return this.buyerAddrSoi;
    }
    
    public void setBuyerAddrSoi(String buyerAddrSoi) {
        this.buyerAddrSoi = buyerAddrSoi;
    }

    
    @Column(name="BUYER_ADDR_ROAD", length=50)
    public String getBuyerAddrRoad() {
        return this.buyerAddrRoad;
    }
    
    public void setBuyerAddrRoad(String buyerAddrRoad) {
        this.buyerAddrRoad = buyerAddrRoad;
    }

    
    @Column(name="BUYER_ADDR_VILLAGE", length=50)
    public String getBuyerAddrVillage() {
        return this.buyerAddrVillage;
    }
    
    public void setBuyerAddrVillage(String buyerAddrVillage) {
        this.buyerAddrVillage = buyerAddrVillage;
    }

    
    @Column(name="BUYER_ADDR2_NO")
    public Integer getBuyerAddr2No() {
        return this.buyerAddr2No;
    }
    
    public void setBuyerAddr2No(Integer buyerAddr2No) {
        this.buyerAddr2No = buyerAddr2No;
    }

    
    @Column(name="BUYER_ADDR3_NO")
    public Integer getBuyerAddr3No() {
        return this.buyerAddr3No;
    }
    
    public void setBuyerAddr3No(Integer buyerAddr3No) {
        this.buyerAddr3No = buyerAddr3No;
    }

    
    @Column(name="BUYER_ADDR4_NO")
    public Short getBuyerAddr4No() {
        return this.buyerAddr4No;
    }
    
    public void setBuyerAddr4No(Short buyerAddr4No) {
        this.buyerAddr4No = buyerAddr4No;
    }

    
    @Column(name="BUYER_ADDR5", length=50)
    public String getBuyerAddr5() {
        return this.buyerAddr5;
    }
    
    public void setBuyerAddr5(String buyerAddr5) {
        this.buyerAddr5 = buyerAddr5;
    }

    
    @Column(name="BUYER_PHONE_NO", length=20)
    public String getBuyerPhoneNo() {
        return this.buyerPhoneNo;
    }
    
    public void setBuyerPhoneNo(String buyerPhoneNo) {
        this.buyerPhoneNo = buyerPhoneNo;
    }

    
    @Column(name="BUYER_MOBILE_NO", length=20)
    public String getBuyerMobileNo() {
        return this.buyerMobileNo;
    }
    
    public void setBuyerMobileNo(String buyerMobileNo) {
        this.buyerMobileNo = buyerMobileNo;
    }




}


